import request from '@/utils/request'

// 查询退会申请记录列表
export function listAppWithdrawal(query) {
  return request({
    url: '/business/appWithdrawal/list',
    method: 'get',
    params: query
  })
}

// 查询退会申请记录列表
export function listAppWithdrawalByMiniUserId(query) {
  return request({
    url: '/business/appWithdrawal/listAppWithdrawalByMiniUserId',
    method: 'get',
    params: query
  })
}

// 查询退会申请记录详细
export function getAppWithdrawal(id) {
  return request({
    url: '/business/appWithdrawal/' + id,
    method: 'get'
  })
}

// 新增退会申请记录
export function addAppWithdrawal(data) {
  return request({
    url: '/business/appWithdrawal',
    method: 'post',
    data: data
  })
}

// 修改退会申请记录
export function updateAppWithdrawal(data) {
  return request({
    url: '/business/appWithdrawal',
    method: 'put',
    data: data
  })
}

// 删除退会申请记录
export function delAppWithdrawal(id) {
  return request({
    url: '/business/appWithdrawal/' + id,
    method: 'delete'
  })
}

export function auditSecondLaborUnion(data) {
  return request({
    url: '/business/appWithdrawal/auditSecondLaborUnion',
    method: 'post',
    data: data
  })
}

export function auditFundCommittee(data) {
  return request({
    url: '/business/appWithdrawal/auditFundCommittee',
    method: 'post',
    data: data
  })
}


